package com.fengye.japidocs;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;
import io.github.yedaxia.apidocs.plugin.markdown.MarkdownDocPlugin;

/**
 * @author sky
 * @version 1.0
 * @since 2021/4/11 16:13
 */

public class JApiDocsMain {
    public static void main(String[] args) {

        DocsConfig config = new DocsConfig();
        config.setProjectPath("/Users/fengye/new/swagger-spring-boot/japidocs"); // root project path
        config.setProjectName("japidocs"); // project name
        config.setApiVersion("V1.0");       // api version
        config.setDocsPath("/Users/fengye/new/swagger-spring-boot/japidocs/md"); // api docs target path
        config.setAutoGenerate(Boolean.TRUE);  // auto generate
        // config.addPlugin(new MarkdownDocPlugin());
        Docs.buildHtmlDocs(config); // execute to generate
    }
}
